﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;

namespace CH14_Sample1.Data
{
    public class TimeSeriesBoundData : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;


        private void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChangedEventArgs args = new PropertyChangedEventArgs(propertyName);
                PropertyChanged(this, args);
            }
        }

        private DateTime _date;
        public DateTime date
        {
            get { return _date; }
            set
            {
                _date = value;
                OnPropertyChanged("date");
            }
        }

        private double _open;
        public double open
        {
            get { return _open; }
            set
            {
                _open = value;
                OnPropertyChanged("open");
            }
        }

        private double _close;
        public double close
        {
            get { return _close; }
            set
            {
                _close = value;
                OnPropertyChanged("close");
            }
        }

        private double _high;
        public double high
        {
            get { return _high; }
            set
            {
                _high = value;
                OnPropertyChanged("high");
            }
        }

        private double _low;
        public double low
        {
            get { return _low; }
            set
            {
                _low = value;
                OnPropertyChanged("low");
            }
        }

        private double _volume;
        public double volume
        {
            get { return _volume; }
            set
            {
                _volume = value;
                OnPropertyChanged("volume");
            }
        }

        private double _adjClose;
        public double adjClose
        {
            get { return _adjClose; }
            set
            {
                _adjClose = value;
                OnPropertyChanged("adjClose");
            }
        }
    }
}
